package com.example.compreshensiveshop.po;

import java.io.Serializable;
import java.math.BigDecimal;
import java.sql.Timestamp;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Builder;
import lombok.Data;

/**
 * @TableName product
 */
@Data
@Builder
public class ProductPO implements Serializable {
    private Long id;
    //商品id
    private Long sellerId;
    //商家id
    private Long categoryId;
    //分类id
    private String name;
    //商品名称
    private BigDecimal price;
    // 商品价格
    private Integer stock;
    // 库存
    private Integer sales;
    // 销量
    private Integer status;
    // 商品状态 1-正常 2-下架
    private String description;
    // 商品描述
    private String image;
    // 商品图片
    private Long viewCount;
    // 商品浏览量
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Timestamp createTime;
    // 创建时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Timestamp updateTime;
    // 更新时间
    private Integer isDeleted;
    // 逻辑删除 0-未删除 1-已删除
    private static final long serialVersionUID = 1L;

}